package services

import (
	"gitee.com/zhengjianfeng/pay/dao"
	"gitee.com/zhengjianfeng/pay/datasource"
	"gitee.com/zhengjianfeng/pay/models"
)

type TestService interface {
	GetAll() *models.Test
}

type testService struct {
	testDao *dao.TestDao
}

func NewTestService() *testService {
	return &testService{
		testDao: dao.NewTestDao(datasource.InstanceMaster()),
	}
}

func (s *testService) GetAll() *models.Test {
	return s.testDao.Get(1)
}
